package ch02;
import java.util.Scanner;
/**
 * Created by hasee on 2017/6/15.
 */
public class Square {
    public static void main(String[] args) {
int a,b,c;
Scanner scan = new Scanner(System.in);
System.out.println("输入正方形边长：");
a = scan.nextInt();
b = a*4;
System.out.println("正方形周长为："+b);
c = a*a;
System.out.println("正方形面积为："+c);
    }
}
